package com.mzpai.product.enums;

public enum ExtractTypeEnum {
	//bank = 银行卡 alipay = 支付宝 weixin=微信
	EXTRACT_TYPE_BANK("bank","银行卡"),
	EXTRACT_TYPE_ALIPAY("alipay","银行卡"),
	EXTRACT_TYPE_WEIXIN("weixin","银行卡");
	
	private String code;
	private String title;

	ExtractTypeEnum(String code, String title) {
		this.code = code;
		this.title = title;
	}

	public String getCode() {
		return code;
	}

	public String getTitle() {
		return title;
	}

	public static String getTitle(String code) {
		for (ExtractTypeEnum obj : ExtractTypeEnum.values()) {
			if (obj.getCode().equals(code)) {
				return obj.title;
			}
		}
		return null;
	}

}
